package cn.controller;

import org.springframework.core.io.support.PropertiesLoaderUtils;

import java.io.IOException;
import java.util.Properties;

public class PropertiesUtils {
    public static String getProperties(String path,String key){
        Properties properties = new Properties();
        try {
            properties = PropertiesLoaderUtils.loadAllProperties("test.properties");
            return properties.getProperty("test");
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
